package com.code.responsibility.handle;

/**
 * <p>价格处理人</p>
 *
 * @author hwf
 * @version 1.0
 * @date 2021/12/14 22:05
 */

public abstract class PriceHandler {

    /**
     * 直接后继、用于传递请求
     */
    protected PriceHandler successor;

    public void setSuccessor(PriceHandler successor) {
        this.successor = successor;
    }


    /**
     * 处理折扣申请
     *
     * @param discount
     */
    public abstract void priceDiscount(float discount);
}
